<h1>Listing folders</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Top level</th>
  </tr>

<% for folder in @folders %>
  <tr>
    <td><%=h folder.name %></td>
    <td><%=h folder.top_level %></td>
    <td><%= link_to 'Show', folder %></td>
    <td><%= link_to 'Edit', edit_folder_path(folder) %></td>
    <td><%= link_to 'Destroy', folder, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New folder', new_folder_path %>
